import request from '@/utils/request'

// 查询体测训练数据列表
export function listTraining(query) {
  return request({
    url: '/tc/training/list',
    method: 'get',
    params: query
  })
}

// 查询体测训练数据详细
export function getTraining(id) {
  return request({
    url: '/tc/training/' + id,
    method: 'get'
  })
}

// 新增体测训练数据
export function addTraining(data) {
  return request({
    url: '/tc/training',
    method: 'post',
    data: data
  })
}

// 修改体测训练数据
export function updateTraining(data) {
  return request({
    url: '/tc/training',
    method: 'put',
    data: data
  })
}

// 删除体测训练数据
export function delTraining(id) {
  return request({
    url: '/tc/training/' + id,
    method: 'delete'
  })
}
